#include "set.h"
#include <stdio.h>

int main(void)
{
 set p;
 p = create();
 insert(p, 10);
 printf(" 10 inserted in the set\n");
 insert(p, 12);
 printf(" 12 inserted in the set\n");
 insert(p, 14);
 printf(" 14 inserted in the set\n");
 insert(p, 11);
 printf(" 11 inserted in the set\n");
 insert(p, 13);
 printf(" 13 inserted in the set\n");
 insert(p, 5);
 printf(" 5 inserted in the set\n");
 insert(p, 8);
 printf(" 8 inserted in the set\n");
 insert(p, 6);
 printf(" 6 inserted in the set\n");
 insert(p, 0);
 printf(" 0 inserted in the set\n");
 printf("set's size: %d\n", size(p));
 printf("At 6th place is %d\n",at(p, 6));
 remove_data(p,6);
 printf("6th data deleted\n");
 printf("set's size: %d\n", size(p));
 printf("At 6th place is %d\n",at(p, 6));
 clear(p);
 printf("set cleared\n");
 printf("set's size: %d\n", size(p));
 destroy(p);
 printf("set destroyed\n");
}
